package com.daedalus.ushtrimePrintimi.tipikeMeYje;
/*
 * Created with IntelliJ IDEA.
 * Author: Kostika Gorica
 * Date: 12-11-18
 * Time: 6.09.MD
 */

public class RombiInvers {

    private static final int noShtylla = 30;

    public static void main(String[] args){
        int noYje = noShtylla/2;
        int noSpace = 0;

        while (noYje>0){
            for (int i=0; i<noYje; i++){
                System.out.print("*");
            }
            for (int i=0; i<noSpace; i++){
                System.out.print(" ");
            }
            for (int i=0; i<noYje; i++){
                System.out.print("*");
            }
            System.out.println();
            noSpace+=2;
            noYje--;
        }
        noYje = 2;
        noSpace-=4;

        while (noYje<=noShtylla/2){
            for (int i=0; i<noYje; i++){
                System.out.print("*");
            }
            for (int i=0; i<noSpace; i++){
                System.out.print(" ");
            }
            for (int i=0; i<noYje; i++){
                System.out.print("*");
            }
            System.out.println();
            noSpace-=2;
            noYje++;
        }
    }

}
